package com.szp.drug.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 角色实体类
 * @author SuZePing
 * @create 2021-01-19 8:05
 * @E-mail suzeping10@126.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class DrugRole implements Serializable {

	private static final long serialVersionUID = 1L;

	// 主键自增[type = IdType.AUTO]
	@TableId(value = "role_id",type = IdType.AUTO)
	private String roleId;

	@TableField("role_name")
	private String roleName;

}
